<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui" template="../../Template.xhtml">

	<ui:define name="title">Add Image</ui:define>

	<ui:define name="body">
		<h:form>
			<p:panelGrid columns="2">
				<h2>Add Image</h2>
				<p:commandButton value="Back" action="ManageImageSite.xhtml" />
			</p:panelGrid>
		</h:form>
		<br />
		<br />
		<br />
		<br />
		<h:form enctype="multipart/form-data">
			<p:messages id="messages" showDetail="true" autoUpdate="true"
				closable="true" />

			<p:panelGrid columns="3">

				<h:outputLabel for="image" value="Select BigImage : " />
			
					
					<p:fileUpload value="#{imageSiteMB.file}" mode="simple" skinSimple="true"/>


				<p:outputLabel value="size Limit 1024" />

				<p:outputLabel value="Status :" />
				<p:selectOneMenu value="#{imageSiteMB.image.status}">
					<f:selectItem itemValue="true" itemLabel="Active" />
					<f:selectItem itemValue="false" itemLabel="Inactive" />
				</p:selectOneMenu>

				<p:commandButton value="Add" ajax="false"
					action="#{imageSiteMB.Ajouter()}" />

			</p:panelGrid>
		</h:form>


	</ui:define>
</ui:composition>